﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ruandao.MiniAccess;
using Ruandao.MiniAccess.SQLite3;
using System.Reflection;
using System.IO;

namespace TestSqlite
{
    public static class DBHelper
    {
        public static string ConnectionString
        {
            get
            {
                return @"Data Source="+GetDBFilePath()+";Version=3;";
            }
        }

        private static string GetDBFilePath()
        {
            return Directory.GetCurrentDirectory()+ "\\" + "test.db";
        }

        public static Database GetSQLiteDatabaseInstance()
        {
            return new SQLiteDatabase(ConnectionString);
        }
    }
}
